import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
// https://vitejs.dev/config/
export default defineConfig({
    plugins: [vue()],
    resolve: {
        extensions: [".js", ".jsx", ".ts", ".tsx", ".json", ".vue"],
        alias: [
            {
                find: "@",
                replacement: "/src",
            },
        ],
    },
    server: {
        proxy: {
            "/api":{
                target: "https://wwwimages2.adobe.com",
                changeOrigin:true,
                rewrite:(path) => path.replace(/^\/api/,""),
                secure: true, // 配置https
            }

        }

    }
});
